package com.smedi.ismedi.progress.core.port.adapter.persistence.mybatis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smedi.ismedi.progress.core.domain.aggregatemodel.ProgressReport;
import com.smedi.ismedi.progress.core.domain.aggregatemodel.WeekMonthReportEidt;
import com.smedi.ismedi.progress.core.port.adapter.persistence.model.ProgressReportEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 特种设备信息表Mapper
 *
 * @author xienannan
 * @date 2021/08/28
 */
@Mapper
public interface ProgressReportMapper extends BaseMapper<ProgressReportEntity> {

    Integer findPercentageNum(ProgressReport weekReport);

    Integer findMaxAccumulationOutput(ProgressReportEntity progressReport);

    Integer findTimeCount(WeekMonthReportEidt weekMonthReportEidtQuery);

    Integer countMonth(int monthType, Long projectId, Long id, int weekMonthDraftStatus);

    List<ProgressReportEntity> findAllProgressReport();

    Integer findMonthNoReport(int monthType, Long projectId);

    void updateStuts(ProgressReportEntity v);
}